package com.im.core.meta;

import com.google.protobuf.Descriptors;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 * @since 2020-04-30 9:48
 */
public class MessageMetaRegistry {

    private Map<String, MessageMeta> metaMap = new ConcurrentHashMap<>();

    void register(MessageMeta meta) {

        this.metaMap.put(meta.getCmdId(), meta);

    }

    MessageMeta get(String cmdId) {

        return metaMap.get(cmdId);

    }


}
